﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucCategory.ascx.cs" Inherits="Admin_ucControl_ucSize" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<div id="tabledata" class="section">
    <h2 class="ico_mug">
        List Category</h2>
    <table width="100%">
        <tr>
            <td style="width: 50%">
                <table width="500px" style="line-height: 32px; vertical-align: top;">
                    <tr>
                        <td style="width: 120px;">
                            Category Name
                        </td>
                        <td>
                            <asp:TextBox ID="txtCateName" runat="server" Width="200"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                ControlToValidate="txtCateName" ValidationGroup="save"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    
                  
                    <tr>
                        <td align="center" style="padding-top: 10px">
                            &nbsp;
                        </td>
                        <td style="padding-top: 10px">
                            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ValidationGroup="save" />
                        </td>
                    </tr>
                </table>
            </td>
            <td style="vertical-align: top;">
                <asp:GridView ID="grvCategory" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" Width="300px">
                    <RowStyle BackColor="White" ForeColor="#330099" />
                    <Columns>
                        <asp:HyperLinkField DataTextField="IDCategory" HeaderText="ID" DataNavigateUrlFormatString="~/Admin/Category.aspx?id={0}"
                            DataNavigateUrlFields="IDCategory">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Height="25px" />
                            <ItemStyle HorizontalAlign="Center" Width="80px" Height="30px" />
                        </asp:HyperLinkField>
                        <asp:BoundField DataField="CategoryName" HeaderText="Category Name" HeaderStyle-Height="25px">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="160px" Height="30px" />
                        </asp:BoundField>
                    </Columns>
                    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                    <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                    <AlternatingRowStyle BorderStyle="None" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</div>
